const appInstance = getApp()

Page({

  /**
   * 页面的初始数据
   */
  data: {
    schoolList: [],
    activeSchool: 10,
    teacherList: [],
    navHeight: 0,
    effectiveHeight: 0
  },
  onLoad: function (options) {
    let schoolList = []
    let teacherList = []
    for (let i = 1; i <= 30; i++) {
      schoolList.push({
        schoolId: `${i}`,
        schoolName: `苏州实验小学${i}`
      })
      teacherList.push({
        id: `${i}`,
        name: `张学友${i}`,
        className: `一年级${i}班`,
        lesson: `数学${i}`,
      })
    }
    this.setData({
      schoolList: schoolList,
      teacherList: teacherList,
      navHeight: appInstance.globalData.navHeight, 
      effectiveHeight: appInstance.globalData.effectiveHeight
    })
  },
})